package com.koron.order.defectPending.service;

import com.github.pagehelper.PageInfo;
import com.koron.bean.query.PageQuery;
import com.koron.order.defectPending.bean.po.DefectPendingPo;
import com.koron.order.defectPending.bean.query.DefectPendingQuery;
import org.koron.ebs.mybatis.SessionFactory;

import java.util.List;

/**
 * 缺陷工单下缺陷待处理信息从表(DefectPending)表服务接口
 *
 * @author zhouj
 * @since 2022-02-09 10:36:18
 */
public interface DefectPendingService {

    DefectPendingPo insertOrUpdate(SessionFactory factory, DefectPendingPo defectPending);

    int insertOrUpdateBatch(SessionFactory factory, List<DefectPendingPo> defectPendingList);

    int insert(SessionFactory factory, DefectPendingPo defectPending);

    int insertBatch(SessionFactory factory, List<DefectPendingPo> defectPendingList);

    int update(SessionFactory factory, DefectPendingPo defectPending);

    int deleteById(SessionFactory factory, String id);

    DefectPendingPo queryById(SessionFactory factory, String id);

    PageInfo queryVoPageList(SessionFactory factory, DefectPendingQuery pendingQuery, PageQuery pageQuery);

    List<DefectPendingPo> queryList(SessionFactory factory, DefectPendingQuery defectPendingQuery);

    int submitDefectPending(SessionFactory factory, String orderId, String status);

}
